<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>人脸识别校验</title>
    <style>
        body {
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
        }
    </style>
</head>

<body>

</body>
<script type="text/javascript" src="#(basePath)/static/js/jquery-2.1.4.js"></script>
<script type="text/javascript" src="#(basePath)/static/js/hmac-sha1.js"></script>
<script>
    var args = {

        "appid": "#(params.appid)",
        "signature": "#(params.signature)",
        "redirect": "#(params.redirect)",
        "uid": "#(params.uid)",
        "type": "#(params.type)"
    };

    var form = $("<form method='post'?</form>");

    form.attr({action: "#(params.authurl)"});

    for (var arg in args) {

        var input = $("<input type='hidden'>")

        input.attr({name: arg});

        input.val(args[arg]);

        form.append(input);
    }
    $(document.body).append(form);
    form.submit();
</script>

</html>